package com.alkaid.manga.service;

import com.alkaid.commons.entity.Manga;
import com.alkaid.commons.entity.MangaSource;
import com.alkaid.commons.ex.DataNotFoundException;

import java.util.List;

/**
 * The interface Manga details service.
 *
 * @author Kylin
 */
public interface MangaDetailsService {
    /**
     * 获取漫画正文
     *
     * @param id the id
     * @return the source
     * @throws DataNotFoundException 资源不存在
     */
    List<MangaSource> getSource(Long id) throws DataNotFoundException;

    /**
     * 获取漫画信息
     *
     * @param id mangaId
     * @return the manga play
     * @throws DataNotFoundException 资源不存在
     */
    Manga getMangaDetailsWithDetailId(Long id) throws DataNotFoundException;
}
